package cn.cpf.spring;

import cn.cpf.spring.action.TestAction;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

public class Main {

    public static void main(String[] args) {
        new Main().testIoc();
    }

    public void testIoc() {
        ApplicationContext act = new ClassPathXmlApplicationContext("spring/spring.xml");

        TestAction testaction = act.getBean("testaction", TestAction.class);
        testaction.insert();
        System.out.println("------eeennnddd----");

    }
}
